<template>
  <div id="app">
    <el-container>
      <el-asid>
        <div id="leftTop" ></div>
        <div id="leftFoot"></div>
      </el-asid>
      <el-main>
        <div id="rightTop"></div>
        <div id="rightMain"></div>
        <div id="rightFoot"></div>
      </el-main>
    </el-container>
  </div>
</template>

<script>


export default {
  name: "rightTest",
  data(){
    return {}
  },
  mounted() {
    this.drawLine();
  },
  methods: {
    drawLine(){
      var echarts = require('echarts');
      // 基于准备好的dom，初始化echarts实例
      let leftTop = echarts.init(document.getElementById('leftTop'))
      // 绘制图表
      leftTop.setOption({
        title: { text: '在Vue中使用echarts' },
        tooltip: {},
        xAxis: {
          data: ["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"]
        },
        yAxis: {},
        series: [{
          name: '销量',
          type: 'bar',
          data: [5, 20, 36, 10, 10, 20]
        }]
      });
    }

  }

}
</script>

<style scoped>
  #leftTop{
    background-color: #eaedf1;
    width: 800px;
    height: 300px;
  }
  #leftFoot{
    background-color: #eaedf1;
    margin-top: 20px;
    width: 800px;
    height: 300px;
  }
  #rightTop{
    background-color: #eaedf1;
    margin-top: -20px;
    width: 300px;
    height: 200px;
  }
  #rightMain{
    background-color: #eaedf1;
    width: 300px;
    height: 200px;
    margin-top: 10px;
  }
  #rightFoot{
    background-color: #eaedf1;
    width: 300px;
    height: 200px;
    margin-top: 10px;
  }
</style>